// 容器组件
import React, { Component } from "react";
import List from "./list/index";
import Detail from "./detail/index";
import { Route, Redirect } from "react-router-dom";

class Home extends Component {
  constructor() {
    super();
  }

  render() {
    return (
      <div className="home">
        <Route path="/home/list" component={List} />
        <Route path="/home/detail/:flowerId" component={Detail} />
        <Redirect strict from="/home" to="/home/list"></Redirect>
      </div>
    );
  }
}

export default Home;
